package com.xiaocg.combination;

/**
 * 叶子节点
 */
public class MenuItem extends MenuComponent{

    public MenuItem(String name,Integer level) {
        this.name =name;
        this.level = level;
    }

    @Override
    public void print() {
        System.out.println("叶子节点:"+name);
    }
}
